package com.meeruu.sg.account.core.api.dto.common;

import lombok.Data;

import java.io.Serializable;

@Data
public class PageFilterDTO implements Serializable {


    private int page = 1;
    /** 默认返回20条，最多支持500条**/
    private int size = 20;

    public void setSize(int size) {
        if(size > 500) {
            this.size = 500;
        }else {
            this.size = size;
        }
    }

}
